package cn.shop.cloud.common;

import lombok.Data;

/**
 * @program: IntelliJ IDEA
 * @ClassName: BusinessException
 * @description:
 * @author: Song
 * @create: 2024-12-13 15 : 45
 * @version: 1.0
 **/
@Data
//@NoArgsConstructor
public class BusinessException extends RuntimeException{

    //引入CodeMsg对象
    private CodeMsg codeMsg;

    public BusinessException(CodeMsg codeMsg) {
        this.codeMsg = codeMsg;
    }
}
